package com.ash.vault;


import JavaAPI.*;
import com.ash.service.TransactionService;

public class TestVaultDelete {
    public static void main(String[] args) {
        TransactionService transactionService = TransactionService.getInstance();
        HttpsPostRequest mpgReq = transactionService.getHttpsPostRequest();


        String data_key = "hst5kO1N97KYeP8FZtrUagTC2";


        ResDelete resDelete = new ResDelete(data_key);


        mpgReq.setTransaction(resDelete);

        mpgReq.send();

        try {
            Receipt receipt = mpgReq.getReceipt();

            System.out.println("DataKey = " + receipt.getDataKey());
            System.out.println("ResponseCode = " + receipt.getResponseCode());
            System.out.println("Message = " + receipt.getMessage());
            System.out.println("TransDate = " + receipt.getTransDate());
            System.out.println("TransTime = " + receipt.getTransTime());
            System.out.println("Complete = " + receipt.getComplete());
            System.out.println("TimedOut = " + receipt.getTimedOut());
            System.out.println("ResSuccess = " + receipt.getResSuccess());
            System.out.println("PaymentType = " + receipt.getPaymentType());

            //ResolveData
            System.out.println("Cust ID = " + receipt.getResCustId());
            System.out.println("Phone = " + receipt.getResPhone());
            System.out.println("Email = " + receipt.getResEmail());
            System.out.println("Note = " + receipt.getResNote());
            System.out.println("MaskedPan = " + receipt.getResMaskedPan());
            System.out.println("Exp Date = " + receipt.getResExpdate());
            System.out.println("Crypt Type = " + receipt.getResCryptType());
            System.out.println("Avs Street Number = " + receipt.getResAvsStreetNumber());
            System.out.println("Avs Street Name = " + receipt.getResAvsStreetName());
            System.out.println("Avs Zipcode = " + receipt.getResAvsZipcode());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

